package com.zhiyou100.service;

import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.exceptions.ServerException;
import com.zhiyou100.model.User;

public interface UserService {


	//根据手机号获取验证码发送的结果
	User sendResult(String phone) throws ServerException, ClientException;
	
	
	//使用手机验证码注册
	void register(User user) throws Exception;
	
	//使用手机号密码登陆
	void login(User user);
	
	//根据id获取用户信息
	User findUser(int id);
	
	//根据id更新用户信息
	User update(User user);
}
